package com.wds.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wds.domain.JsonResult;
import com.wds.domain.entity.Category;
import com.wds.domain.vo.CategoryPageVo;
import com.wds.domain.vo.CategoryQueryAllVo;
import com.wds.domain.vo.CategoryVo;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 分类表(Category)表服务接口
 *
 * @author wds
 * @since 2022-10-21 15:30:19
 */
public interface CategoryService extends IService<Category> {

    JsonResult<List<CategoryVo>> getCategoryList();

    JsonResult<List<CategoryQueryAllVo>> queryAllCategory();

    JsonResult<CategoryPageVo> queryCategoryPage(Integer pageNum, Integer pageSize, String name, Integer status);

    JsonResult<Object> addNewCategory(Category category);

    JsonResult<Object> delete(List<Long> ids);

    JsonResult<Object> queryOne(Long id);

    JsonResult<Object> updateCategory(Category category);

    void exportExcel(HttpServletResponse response) throws IOException;
}

